﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ChatDS" targetNamespace="http://tempuri.org/ChatDS.xsd" xmlns:mstns="http://tempuri.org/ChatDS.xsd" xmlns="http://tempuri.org/ChatDS.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="UcConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Public" Name="UcConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.UCENTRIK.Properties.Settings.GlobalReference.Default.UcConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ChatDSTableAdapter" GeneratorDataComponentClassName="ChatDSTableAdapter" Name="ChatDS" UserDataComponentName="ChatDSTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_chat_select" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_chat_delete</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@chat_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="chat_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_chat_insert</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@chat_session" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="chat_session" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@chat_sender" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="chat_sender" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="ntext" DbType="String" Direction="Input" ParameterName="@chat_message" Precision="0" ProviderType="NText" Scale="0" Size="1073741823" SourceColumn="chat_message" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_chat_select</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@chat_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_chat_update</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@chat_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="chat_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@chat_session" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="chat_session" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@chat_sender" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="chat_sender" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="ntext" DbType="String" Direction="Input" ParameterName="@chat_message" Precision="0" ProviderType="NText" Scale="0" Size="1073741823" SourceColumn="chat_message" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="chat_id" DataSetColumn="chat_id" />
              <Mapping SourceColumn="chat_session" DataSetColumn="chat_session" />
              <Mapping SourceColumn="chat_sender" DataSetColumn="chat_sender" />
              <Mapping SourceColumn="chat_message" DataSetColumn="chat_message" />
              <Mapping SourceColumn="chat_datetime" DataSetColumn="chat_datetime" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_chat_select_by_session" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetChatMessagesBySession" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetChatMessagesBySession" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetChatMessagesBySession" UserSourceName="GetChatMessagesBySession">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_chat_select_by_session</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@chat_session" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@chat_rows" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="ChatDS" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="ChatDS" msprop:Generator_DataSetName="ChatDS" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ChatDS" msprop:Generator_UserTableName="ChatDS" msprop:Generator_RowDeletedName="ChatDSRowDeleted" msprop:Generator_RowChangedName="ChatDSRowChanged" msprop:Generator_RowClassName="ChatDSRow" msprop:Generator_RowChangingName="ChatDSRowChanging" msprop:Generator_RowEvArgName="ChatDSRowChangeEvent" msprop:Generator_RowEvHandlerName="ChatDSRowChangeEventHandler" msprop:Generator_TableClassName="ChatDSDataTable" msprop:Generator_TableVarName="tableChatDS" msprop:Generator_RowDeletingName="ChatDSRowDeleting" msprop:Generator_TablePropName="_ChatDS">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="chat_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="chat_id" msprop:Generator_ColumnVarNameInTable="columnchat_id" msprop:Generator_ColumnPropNameInRow="chat_id" msprop:Generator_ColumnPropNameInTable="chat_idColumn" type="xs:int" />
              <xs:element name="chat_session" msprop:Generator_UserColumnName="chat_session" msprop:Generator_ColumnVarNameInTable="columnchat_session" msprop:Generator_ColumnPropNameInRow="chat_session" msprop:Generator_ColumnPropNameInTable="chat_sessionColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="chat_sender" msprop:Generator_UserColumnName="chat_sender" msprop:Generator_ColumnVarNameInTable="columnchat_sender" msprop:Generator_ColumnPropNameInRow="chat_sender" msprop:Generator_ColumnPropNameInTable="chat_senderColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="chat_message" msprop:Generator_UserColumnName="chat_message" msprop:Generator_ColumnVarNameInTable="columnchat_message" msprop:Generator_ColumnPropNameInRow="chat_message" msprop:Generator_ColumnPropNameInTable="chat_messageColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1073741823" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="chat_datetime" msprop:Generator_UserColumnName="chat_datetime" msprop:Generator_ColumnVarNameInTable="columnchat_datetime" msprop:Generator_ColumnPropNameInRow="chat_datetime" msprop:Generator_ColumnPropNameInTable="chat_datetimeColumn" type="xs:dateTime" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ChatDS" />
      <xs:field xpath="mstns:chat_id" />
    </xs:unique>
  </xs:element>
</xs:schema>